
<head>
<style type="text/css">
.table { width:100%; text-align:left; font-size:12px; overflow:hidden;  border-collapse:collapse; }
.table thead * th{ background:#F5F5F5; border:1px solid #E3E3E3; padding:0px 6px; color:#999; } 
.table tbody * th{  background:#F5F5F5; border:1px solid #DDD; }
.table tbody * th strong{ line-height:21px; text-indent:10px; color:#999; }
.td1{ text-align:right; color:#666; }
.td2,.td3,.td4,.td5,.td6,.td7,.td8,.td9{ text-align:center; } 
.td5{ background:#F5F5F5; }
.td6,.td7,.td8,.td9{ background:#F5F5F5; }
.abctxt {padding:10px;}
.table .left {text-align:right;}
.form1 .tds input {
width: 275px;
height: 30px;
border: none;
margin: 5px 0 10px 0;
background-color: white;
border: 1px solid lightGrey;
}
.form1 textarea {
resize: none;
width: 275px;
height: 100px;
margin: 5px 0 10px 0;
background-color: white;
border: 1px solid lightGrey;
overflow: auto;
max-width: 275px;
}

.btn1
{
text-indent:-9999px;
text-transform:capitalize;
clear: both;
width: 86px;
height: 27px;
line-height: 20px;
margin: 15px 0px;
padding-left: 10px;
text-align: center;
color: white;
font-size: 12px;
text-decoration: none;
border: none;
cursor: pointer;
}
.submit {
background: url(template/company/skin/images/btn3.jpg) left top no-repeat;
}
.submit:hover {
background: url(template/company/skin/images/btn3on.jpg) left top no-repeat;
}
.reset{
background: url(template/company/skin/images/btn4.gif) left top no-repeat;
}
.reset:hover{
background: url(template/company/skin/images/btn4on.gif) left top no-repeat;
}
</style>

<script type="text/javascript" src="{$base_url}/common/js/ajaxfileupload.js"></script>
<script type="text/javascript" src="{$base_url}/common/js/ThumbAjaxFileUpload.js"></script>

<link rel="stylesheet" href="{$base_url}/common/js/jquery/ui/ui.datepicker.css" type="text/css" media="screen" title="core css file" charset="utf-8" />
<script language="javascript" src="{$base_url}/common/js/jquery/ui/ui.datepicker.js"></script>
<script type="text/javascript" src="{$base_url}/common/js/common.js"></script>
<script type="text/javascript">
function checkform() {	
	{loop $field $f}
	<?php $name=$f['name']; ?>
	if(!document.form1.{$f[name]}.value){
		alert("&#35831;&#22635;&#20889;{$name|lang}");
		document.form1.{$f[name]}.focus();
		return false;
	}
	{/loop}
	return true;
}  
</script>

</head>

<div id="content" class="clear">
<div style="padding-bottom:20px;">
    <form method="post" action="" name="form1" onsubmit="return checkform();" class="form1">
        <table cellspacing="1" cellpadding="3" border="0" class="table" align="center">

                {loop $field $f}
                <?php

                $name=$f['name'];
                if($name==$primary_key) continue; ?>
                <tr onmouseover="this.bgColor='#EEE';" onmouseout="this.bgColor='';" bgcolor="">
                    <td class="left" width="90">{$name|lang}</td>
                    <td class="tds">
                        {form::getform($name,@$form,$field,@$data)}
                    </td>
                </tr>
                {/loop}
				<?php if(config::get('verifycode')){ ?>
				<tr onmouseover="this.bgColor='#EEE';" onmouseout="this.bgColor='';" bgcolor="">
				<td class="left" width="90">{lang(verifycode)}</td>
				<td class="tds"><input type='text' id="verify"  tabindex="3"  name="verify" class="input" style="width:100px;" />&nbsp;{verify()}<strong style="color:red;">{message()}</strong></td>
				</tr>
				<?php  } ?>
				<input type='hidden' id="aid" name="aid" value="{$archive[aid]}" />
				<tr onmouseover="this.bgColor='#EEE';" onmouseout="this.bgColor='';" bgcolor="">
				<td width="90"></td>
				<td align="left"><input type="submit" name="submit" value="{lang(submit)}" class="btn1 submit" />&nbsp;&nbsp;&nbsp;
				<input type="reset" name="reset" value="" class="btn1 reset" />
				</td>
				</tr></table></form>
				</div>